def make_response(code=0, msg='ok', data=None):
    resp = {'code': code, 'msg': msg}

    if data:
        resp['data'] = data

    return resp, 200
